%define commit 743c27bea2bcecb642235fa7f062c75c2769e9eb
%define commit_short %(echo %{commit} | head -c6)

Summary(ru_RU.UTF-8):	Графический ограничитель настроек KDE
Summary:	KDE restrictions GUI
Name:		kde-restrictions-gui
Version:	1
Release:	1.git%{commit_short}.2
License:	GPLv3
Group:		Education
Url:		https://hub.mos.ru/mos/src/kde-restrictions-gui
Source0:	https://hub.mos.ru/mos/src/kde-restrictions-gui/-/archive/%{commit}/%{name}-%{commit}.tar.gz
BuildArch:	noarch

Requires:	python3-qt5

%description -l ru_RU.UTF-8
Графический ограничитель настроек KDE

%description
KDE restrictions GUI

%files
%{_bindir}/kde-restrictions-gui
%{_datadir}/kde-restrictions-gui

#------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{commit}

%install
mkdir -p %{buildroot}%{_bindir}
install -m755 main.py %{buildroot}%{_bindir}/%{name}
mkdir -p %{buildroot}%{_datadir}/%{name}
install -m644 restrictions/*.txt %{buildroot}%{_datadir}/%{name}
